﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Zhao.Models.DTO
{

    /// <summary>
    /// 获取场馆的场地预约信息
    /// </summary>
    public class VenuePricingDTO
    {
        /// <summary>
        /// 场地Id
        /// </summary>
        public int fId { get; set; }        
        public string fName { get; set; }
        /// <summary>
        /// 时间价格集合
        /// </summary>
        public List<TimePrice> TimePrices { get; set; } 
        /// <summary>
        /// 预约信息
        /// </summary>
        public List<Booking> Bookings { get; set; } 
        public int BookingCount { get; set; }
    }

    /// <summary>
    /// 时间价格信息独立实体
    /// </summary>
    public class TimePrice
    {
        public TimeOnly StartTime { get; set; }  // 建议统一命名规范
        public TimeOnly EndTime { get; set; }    // 修正原字段名 eTiem 的拼写错误
        public bool? IsWeekend { get; set; }      // 可空类型保持合理
        public decimal Price { get; set; }
    }

    /// <summary>
    /// 场地预约数据
    /// </summary>
    public class Booking
    {
        public int Id { get; set; }
        public DateTime StartTime { get; set; } 
        public DateTime EndTime { get; set; }
        public short? status { get; set; }
        public string userName { get; set; }
        public string phone { get; set; }
        public decimal price {  get; set; } 
    }
}
